using System;
using System.Collections.Generic;
using System.Text;

namespace Khanhnt
{
    public class timTong
    {
        private double a;
        private double b;

        public timTong()
        {
            a = 0;
            b = 0;
        }

        public timTong(double a, double b)
        {
            this.a = a;
            this.b = b;
        }

        public void nhapA(String a)
        {
            this.a = double.Parse(a);
        }

        public void nhapB(String b)
        {
            this.b = double.Parse(b);
        }

        public double tinhTong()
        {
            return a + b;
        }
    }
}
